package com.hz.ruoyimotor.service.impl;/**
 * @Author tjh
 * @Date 2025/3/6 9:24
 * @version 1.0
 * @注释
 */

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.rouyigonggong.domain.LgVehicle;
import com.hz.ruoyimotor.mapper.LgVehicleMapper;
import com.hz.ruoyimotor.service.LgVehicleService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LgVehicleServiceImpl
 * @Description TODO
 * @Author tjh
 * @Date 2025/3/6 9:24
 * @Version 1.0
 */
@Service
public class LgVehicleServiceImpl extends ServiceImpl<LgVehicleMapper, LgVehicle> implements LgVehicleService {

    @Autowired
    private LgVehicleMapper lgVehicleMapper;
    @Override
    public List<LgVehicle> getReallyList(Integer vehicleType, Double vehicleLength,
                                         Double vehicleVolume,
                                          Integer licenseType,String licensePlate,
                                         Integer vehicleStatus,
                                         String beginTime,
                                         String endTime, Integer firstNum, Integer secondNum,
                                         String createBy) {
        return lgVehicleMapper.getReallyList(vehicleType, vehicleLength, vehicleVolume,
                licenseType,
                licensePlate, vehicleStatus,
                beginTime, endTime,
                firstNum, secondNum,createBy);
    }

    @Override
    public int getCount(Integer vehicleType, Double vehicleLength, Double vehicleVolume,
                         Integer licenseType, String licensePlate,
                        String beginTime,
                        String endTime, Integer vehicleStatus, String createBy) {
        return lgVehicleMapper.getCount(vehicleType,vehicleLength,
                vehicleVolume,
                licenseType,licensePlate,
                beginTime,endTime,

                vehicleStatus,createBy);
    }

    @Override
    public int deleteBatchIds(String[] vehicleIds) {
        return lgVehicleMapper.deleteBatchIds(vehicleIds);
    }

    @Override
    public int getCountVehicle() {
        return lgVehicleMapper.getCountVehicle();
    }


}

